<%= error_messages_for 'project' %>

<!--[form:project]-->
<p><label for="project_name">Name</label><br/>
<%= text_field 'project', 'name'  %></p>

<p><label for="project_short">Short name</label><br/>
<%= text_field 'project', 'short'  %></p>

<% if @project.client_id != 0%>
<%= hidden_field 'project', 'client_id' %></p>
<% else %>
<p><label for="project_client_id">Client</label><br/>
<%= collection_select('project', 'client_id', @owner.clients, "id", "short", { :include_blank => true }) %></p>
<% end %>

<!--[eoform:project]-->

<h2>Project assignees</h2>
<% for user in @users %>
  <input type="checkbox"
         id="<%= user.id%>"
         name="assignee_ids[]"
         value="<%= user.id %>"
         <%if @project.assignees.include? user%>checked="checked"<%end%>
   > <%= user.name%> - <%= user.short %>
  </br>
<%end%>
